package com.zhw.activiti.controller.api;

import com.zhw.activiti.service.ActivitiConsumerService;
import com.zhw.activiti.utils.ResultVoUtil;
import com.zhw.activiti.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhw
 */
@RestController
public class ActivitiConsumerController {

    @Autowired
    private ActivitiConsumerService activitiConsumerService;

    @GetMapping("/test/activitiDemo")
    public ResultVo startActivitiDemo(){
        return ResultVoUtil.success(activitiConsumerService.startActivitiDemo());
    }
}
